package cc.comac.mom.api;

import cc.comac.mom.bean.EquipMaintainWorkOrderBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipMaintainWorkOrderExecution;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@FeignClient("mom-equipment-mgmt-srv")
public interface EquipMaintainWorkOrderExecutionService {

	
	@ApiOperation("更新保养基准执行数据")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderExecutionService/EquipMaintainWorkOrderExecution", method = RequestMethod.POST)
	public ResultBean updateMaintainWorkOrderExecution(
			@RequestBody EquipMaintainWorkOrderExecution equipMaintainWorkOrderExecution);

	
	@ApiOperation("查询保养基准执行数据")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderExecutionService/selectByOrderId", method = RequestMethod.POST)
	public ResultBean selectByOrderId(@RequestBody EquipMaintainWorkOrderExecution equipMaintainWorkOrderExecution);

	@ApiOperation("查询保养基准执行数据")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderExecutionService/selectByCondition", method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody EquipMaintainWorkOrderBean equipMaintainWorkOrderExecution);


	@ApiOperation("开始执行")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderExecutionService/startExecution", method = RequestMethod.POST)
	public ResultBean startExecution(@RequestBody EquipMaintainWorkOrderExecution equipMaintainWorkOrderExecution);

	@ApiOperation("执行按钮")
	@RequestMapping(value = "/p/cs/EquipMaintainWorkOrderExecutionService/executionBenchmark", method = RequestMethod.POST)
	public ResultBean executionBenchmark(@RequestBody EquipMaintainWorkOrderExecution equipMaintainWorkOrderExecution);
}
